﻿#pragma once
#include <QString>
#include <QList>
#include <QPair>
#include "CConstant.h"

struct CStoryDetailsData
{
	QString picture;
	QString userAvatar;
	QString description;
	QString date;
	QList<QPair<QString, QString>> content;
	
	CStoryDetailsData() {}
	CStoryDetailsData(const QString& picture, const QString& description, const QString& userAvatar, const QList<QPair<QString, QString>>& content, const QString& date)
	{
		this->picture = picture;
		this->description = description;
		this->userAvatar = userAvatar;
		this->content = content;
		this->date = date;
	}

	static CStoryDetailsData* GetErrorData()
	{
		return new CStoryDetailsData(CConstant::NETERRORPIC, "网络异常", CConstant::NETERRORPIC,
			QList<QPair<QString, QString>>(), "");
	}
};
